<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : XslSample.xsl
    Created on : April 10, 2008, 3:20 PM
    Author     : ward
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html"/>

	<xsl:template match="/">
		<html>
			<head>
				<title>XslSample.xsl</title>
			</head>
			<body>
				<xsl:for-each  select='//Projects/Project'>
					<h3>
						<xsl:value-of select='ProjectFileName'/>
					</h3>

					<xsl:for-each select='Pages/Page'>
						<h1>
							<xsl:value-of select='PageCaption'/>
						</h1>
						<h2>
							<xsl:value-of select='PageDescription'/>
						</h2>
						<table>
							<tr>
								<td>
									<xsl:value-of select='Header/RowLabelCaption'/>
								</td>
								<xsl:for-each select='Header/TextColumnNames'>
									<td>
										<xsl:value-of select='TextColumnName'/>
									</td>
								</xsl:for-each>
								<xsl:for-each select='Header/NumericColumnNames'>
									<td>
										<xsl:value-of select='NumericColumnName'/>
									</td>
								</xsl:for-each>
							</tr>
							<xsl:for-each select='Rows/Row'>
								<tr>
									<td>
										<xsl:value-of select='RowLabelValue'/>
									</td>
									<xsl:for-each select='TextColumnValues'>
										<td>
											<xsl:value-of select='TextColumnValue'/>
										</td>
									</xsl:for-each>
								</tr>
							</xsl:for-each>
						</table>
					</xsl:for-each>
					<!-- Pages -->
				</xsl:for-each>
				<!-- Projects -->
			</body>
		</html>
	</xsl:template>

</xsl:stylesheet>
